home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000160_fdc@columbia.edu_Mon Jun 17 11:50:38 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  60 lines

  1. Article: 13464 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: voice connection question!
  6. Date: 17 Jun 2002 11:50:27 -0400
  7. Organization: Columbia University
  8. Lines: 43
  9. Message-ID: <ael0g3$oj0$1@watsol.cc.columbia.edu>
  10. References: <aeg0np$70r$01$1@news.t-online.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1024329028 25770 128.59.39.139 (17 Jun 2002 15:50:28 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 17 Jun 2002 15:50:28 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13464
  16.  
  17. In article <aeg0np$70r$01$1@news.t-online.com>,
  18. Roland H∩┐╜pfner <rollo@gmx.net> wrote:
  19. : I am very new in writing scripts in kermit, thats why my question must be
  20. : very simple to answer! ;-)
  21. : I wrote a script, that will estabilish a voice-connection from my ISDN card
  22. : to a telephone! That works, here it is:
  23. : set line /dev/ttyI0
  24. : set carrier-watch off
  25. : output AT z &e50579002\13
  26. : input 3 OK
  27. : output ats18=1\13
  28. : input 3 OK
  29. : output atd50579002\13
  30. : Now I want, that if the voice connection is canceled or the connection
  31. : couldn't established, the script will try to redial or to make a new
  32. : connection until I stop the script!
  33. What is the modem's response to the ATD command when the voice call is
  34. successful?  What does the modem say when the modem call is unsuccessful or
  35. is canceled?  What does the modem say when the connection hangs up?  Under
  36. what circumstances do you want the script to stop redialing?  Write your
  37. script to look for these strings and do the appropriate thing for each one.
  38. I don't know the answers to these questions so I can't write your script for
  39. you, but you could use a WHILE loop containing an MINPUT command to look
  40. for the various response, like this:
  41.  
  42.   ...
  43.   output ats18=1\13
  44.   input 3 OK
  45.   while true {
  46.       output atd50579002\13
  47.       minput -1 "VOICE" "BUSY" "NO ANSWER" ...
  48.       switch \v(minput) {
  49.           :1, (wait for message indicating hangup), continue
  50.           :2, sleep 30, continue
  51.           :3, stop 1 "Number does not answer"
  52.           (etc etc)
  53.       }
  54.   }
  55.  
  56. - Frank
  57.